package com.znf4.constants;

import com.znf4.config.SystemConfig;

/**
 * 基本常量
 *
 *
 */
public class CommonConst {

	/**
	 * 当前系统管理员
	 */
	public static final String BOOS = "boos";
	
	
	
	/**
	 * 当前微信帐号
	 */
	public static final String WX_OPEN_ID = "WxOpenId";
	public static final String WX_CODE = "WxCode";   // code 码
	

	/**
	 * 公众号当前代理商
	 */
	public static final String GZH_CURRENT_AGENT = "gzhCurrentAgent";
	
	
	/**
	 * OSS 图片编号
	 * 商品 ，广告 ， 活动 ，实物预览
	 */
	public static final String CROPS_GOOD_IMG_NUMBER = "resources/good/crops/";      // 农作物商品图片编号
	public static final String FREE_GOOD_IMG_NUMBER = "resources/good/free/";        // 免费商品图片编号
	public static final String JIFEN_GOOD_IMG_NUMBER = "resources/good/jifen/";      // 积分商品图片编号
	public static final String AD_IMG_NUMBER = "resources/ad/";                      // 广告图片编号
	public static final String ACTIVE_IMG_NUMBER = "resources/active/";              // 活动图片编号
	public static final String LOOK_VIDEO_NUMBER = "resources/look/video/";          // 实物预览视频编号
	public static final String LOOK_IMG_NUMBER = "resources/look/img/";              // 实物预览图片编号
	
	
	/** 商户订单编号前缀 **/
	public static final String MERCHANT_ORDER_NO_PREFIX = SystemConfig.SYSTEM_CONDITIONS + "1111";

	/** 资源订单号前缀 **/
	public static final String PLATFROM_RESOURCE_NO = SystemConfig.SYSTEM_CONDITIONS + "5555";

	/** 银行订单号 **/
	public static final String BANK_ORDER_NO_PREFIX = SystemConfig.SYSTEM_CONDITIONS + "";

	/** 支付流水号前缀 **/
	public static final String TRX_NO_PREFIX = SystemConfig.SYSTEM_CONDITIONS + "7777";

	/** 用户编号前缀 **/
	public static final String USER_NO_PREFIX = SystemConfig.SYSTEM_CONDITIONS + "8888";

	/** 账户编号前缀 **/
	public static final String ACCOUNT_NO_PREFIX = SystemConfig.SYSTEM_CONDITIONS + "9999";
	
	
	
	
	/**
	 *  商户店铺 redis 缓存 hash key 
	 */
	public static final String MERCHANT_STORE_HASH_KEY = "merchantStore" ;
	
	
	
	/**
     * Lucene 索引的本地位置
     */
     public static final String  IndexPath = "F://lucene" ;
     public static final String  IndexName = "znf4Lucene" ;
     
     public static final int Max = 1000 ;   // 搜索个数的最大值
     public static final int PageSize = 7 ;   // 每页60个
     public static double  IndexReopenMaxStaleSec = 10 ;    // 索引重读时间
     public static double  IndexReopenMinStaleSec = 0.025 ; // 索引的重读频率
     public static int  IndexCommitSeconds = 60 ;           // 设置多长时间讲内存索引 写入到内存之中  60 秒 ,用来进行睡眠
	
	
	
     /** 短信验证码 **/
 	 public static final String SMS_CODE = "smsCode";
	
	
	
	
	
	

}
